package com.liwei.services;

import com.liwei.beans.Stu;
import com.liwei.mapper.StuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

//@Repository代表dao层,但我们dao使用的是mapper,因此不用
//语义，代表业务，和Controller没有不同，只是语义不同
//@Controller
@Service
public class StuServicesImp implements StuServices{
    @Autowired
    StuMapper stuMapper;

    @Override
    public ArrayList<Stu> getAll() {
        return stuMapper.getAll();
    }
}
